package com.xiaolin.designmode.observer;

/**
 * @ClassName ObserverTest
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/7
 * @Version 1.0
 */
public class ObserverTest {
    public static void main(String[] args) {
        Subject subject=new ConcreteSubject();
        subject.add(new ConcreteObserver1());
        subject.add(new ConcreteObserver2());
        subject.notifyObserver();
    }
}
